package com.zy.experience_system.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(true,200,"操作成功！"),
    NO_LOGIN(false,400,"您还未登录"),
    FAIL(false,500, "数据错误"),
    NO_PERMS(false,600,"无操作权限");


    private boolean success;
    private Integer code;
    private String msg;

    ResultEnum(boolean success, Integer code, String msg){
        this.success = success;
        this.code = code;
        this.msg = msg;
    }
}
